package com.qidianit.task.service;

import com.qidianit.task.pojo.Project;
import com.qidianit.task.util.pojo.QdResult;

import java.util.List;

/**
 * @Author hitsune
 * @Company kafu chino
 * @Description
 * @Time 2024/9/5 下午 4:42
 */
public interface ProjectService {
    /**
     * 分页查询项目
     * @param project 封装查询条件
     * @param page 要查询的页码
     * @param limit 每页大小
     * @return
     */
    QdResult selectByPage(Project project,int page,int limit);

    /**
     * 根据id删除项目,只是将对应的状态改为99
     * @param projectId
     */
    void deleteByProjectId(String projectId);

    Project selectOneByProjectId(String projectId);

    void saveProject(Project project);

    void pigeonholeProject(String projectId);

    void publishProject(List<String> projectIds);
    void batchPigProject(List<String> projectIds);
    void batchDelProject(List<String> projectIds);
    void recoverProject(String projectId);
    void batchRecoverProject(List<String> projectIds);
    QdResult selectDelList(Project project,int page,int limit);
    QdResult getProjectById(String projectId);
    Long sumTaskNum(String projectId);
    QdResult countProject(Long userId);
}
